package cn.com.thinvent.dispatch.dao;

import cn.com.thinvent.dispatch.dao.base.BaseMapper;
import cn.com.thinvent.dispatch.entity.ModelTarget;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ModelTargetMapper extends BaseMapper<ModelTarget> {

    Integer deleteById(@Param("id") Integer id);

    List<ModelTarget> list(@Param("name") String name, @Param("pageBegin") Integer pageBegin, @Param("pageSize") Integer pageSize);

    Long count(@Param("name") String name);

    List<ModelTarget> getListByIds(@Param("ids") List<Integer> ids);
}
